/*--------------------------------------------------------------------------------------------------
Yatak Operation System Project Copyright 2012-2013
Author : Ilya Churaev
Started : 11 Oct 2012		Updated : 11 Oct 2012
File Name : port.h			Purpose : Write and read ports
--------------------------------------------------------------------------------------------------*/
#ifndef _YATAK_PORT_H
#define _YATAK_PORT_H

#ifdef __cplusplus
extern "C" {
#endif

unsigned char inportb (unsigned short _port);
unsigned short inportw (unsigned short _port);
void insw(unsigned short port, unsigned short *addr, unsigned int count);
void insl(unsigned short port, unsigned int *addr, unsigned int count);
void outsw(unsigned short port, const unsigned short * addr, unsigned int count);
void outsl(unsigned short port, const unsigned int * addr, unsigned int count);
unsigned long inportl (unsigned short _port);
void outportb (unsigned short _port, unsigned char _data);
void outportw (unsigned short _port, unsigned short _data);
void outportl (unsigned short _port, unsigned long _data);

#ifdef __cplusplus
}
#endif

#endif
